


		**********************************************************
		** File: Table_B2.do									**
		** Paper: Human Trafficking Indicators: A New Dataset	**
		** Author: Richard Frank								**
		** Date: July 11, 2021									**
		** Task: Creating  Table B2 							**
 		**********************************************************
	
	
	clear all
	version 16.1
	set seed 1234
	
	cd "/Users/rich/Dropbox/research/ht/papers/HT data paper/data/"
	* use the data you merged using Table_3_merging_data.do
		
	sum KOFSoGI
	tab year if KOFSoGI~=.
	codebook ccode if KOFSoGI~=.
	
	
	sum agr_employment
	tab year if agr_employment ~=.
	codebook ccode if agr_employment~=.
	
	sum america_l
	tab year if america_l ~=.
	codebook ccode if america_l~=.
	
	sum america_n
	tab year if america_n~=.
	codebook ccode if america_n~=.
	
	sum conflict_external
	tab year if conflict_external~=.
	codebook ccode if conflict_external~=.
	
	sum conflict_internal
	tab year if conflict_internal ~=.
	codebook ccode if conflict_internal~=.
	
	sum cpi
	tab year if cpi~=.
	codebook ccode if cpi~=.
	
	sum easia_pacific
	tab year if easia_pacific~=.
	codebook ccode if easia_pacific~=.
	
	sum energyuse
	tab year if energyuse ~=.
	codebook ccode if energyuse~=.
	
	sum english
	tab year if english~=.
	codebook ccode if english~=.
	
	sum ethnic
	tab year if ethnic~=.
	codebook ccode if ethnic~=.
	
	sum ethnic_tension
	tab year if ethnic_tension~=.
	codebook ccode if ethnic_tension~=.
	
	sum europe
	tab year if europe~=.
	codebook ccode if europe~=.
	
	sum execleft
	tab year if execleft~=.
	codebook ccode if execleft~=.
	
	sum execright
	tab year if execright~=.
	codebook ccode if execright~=.
	
	sum fdi_gdpl
	tab year if fdi_gdpl~=.
	codebook ccode if fdi_gdpl~=.
	
	sum food_bev
	tab year if food_bev~=.
	codebook ccode if food_bev~=.	
	
	sum french
	tab year if french~=.
	codebook ccode if french~=.
	
	sum gdppcl
	tab year if gdppcl~=.
	codebook ccode if gdppcl~=.	
	
	sum german
	tab year if german~=.
	codebook ccode if german~=.
	
	sum heroinl
	tab year if heroinl~=.
	codebook ccode if heroinl~=.	
	
	sum homicides
	tab year if homicides~=.
	codebook ccode if homicides~=.
	
	sum infant_mortality
	tab year if infant_mortality~=.
	codebook ccode if infant_mortality~=.	
	
	sum landlocked
	tab year if landlocked~=.
	codebook ccode if landlocked~=.
	
	sum language
	tab year if language~=.
	codebook ccode if language~=.	
	
	sum legal_british
	tab year if legal_british~=.
	codebook ccode if legal_british~=.
	
	sum legal_french
	tab year if legal_french~=.
	codebook ccode if legal_french~=.	
	
	sum legal_german
	tab year if legal_german~=.
	codebook ccode if legal_german~=.	
	
	sum legal_scan
	tab year if legal_scan~=.
	codebook ccode if legal_scan~=.
	
	sum literacy
	tab year if literacy~=.
	codebook ccode if literacy~=.	
	
	sum lp_catho80
	tab year if lp_catho80~=.
	codebook ccode if lp_catho80~=.
	
	sum lp_muslim80
	tab year if lp_muslim80~=.
	codebook ccode if lp_muslim80~=.	
	
	sum lp_protmg80
	tab year if lp_protmg80~=.
	codebook ccode if lp_protmg80~=.	
	
	sum mediafreedom
	tab year if mediafreedom~=.
	codebook ccode if mediafreedom~=.
	
	sum mena
	tab year if mena~=.
	codebook ccode if mena~=.	
	
	sum migration_net
	tab year if migration_net~=.
	codebook ccode if migration_net~=.
	
	sum mortality_under5
	tab year if mortality_under5~=.
	codebook ccode if mortality_under5~=.	
	
	sum oecd
	tab year if oecd~=.
	codebook ccode if oecd~=.	
	
	sum peacekeepersfl
	tab year if peacekeepersfl~=.
	codebook ccode if peacekeepersfl~=.
	
	sum peacekeepersl
	tab year if peacekeepersl~=.
	codebook ccode if peacekeepersl~=.	
	
	sum polity2
	tab year if polity2~=.
	codebook ccode if polity2~=.
	
	sum pop
	tab year if pop~=.
	codebook ccode if pop~=.	
	
	sum portuguese
	tab year if portuguese~=.
	codebook ccode if portuguese~=.
	
	sum prevention_3p
	tab year if prevention_3p~=.
	codebook ccode if prevention_3p~=.	
	
	sum prostitutionlaw
	tab year if prostitutionlaw~=.
	codebook ccode if prostitutionlaw~=.
	
	sum protection_3p
	tab year if protection_3p~=.
	codebook ccode if protection_3p~=.	
	
	sum pve
	tab year if pve~=.
	codebook ccode if pve~=.
	
	sum refugees_dl
	tab year if refugees_dl~=.
	codebook ccode if refugees_dl~=.	
	
	sum religion
	tab year if religion~=.
	codebook ccode if religion~=.
	
	sum rle
	tab year if rle~=.
	codebook ccode if rle~=.	
	
	sum sasia
	tab year if sasia~=.
	codebook ccode if sasia~=.
	
	sum spanish
	tab year if spanish~=.
	codebook ccode if spanish~=.			
	
	sum ssa
	tab year if ssa~=.
	codebook ccode if ssa~=.
	
	sum tourism
	tab year if tourism~=.
	codebook ccode if tourism~=.			
	
	sum trade
	tab year if trade~=.
	codebook ccode if trade~=.
	
	sum unemployment
	tab year if unemployment~=.
	codebook ccode if unemployment~=.			
	
	sum urbanpop
	tab year if urbanpop~=.
	codebook ccode if urbanpop~=.
	
	sum vae
	tab year if vae~=.
	codebook ccode if vae~=.		
	
	sum visa_dest
	tab year if visa_dest~=.
	codebook ccode if visa_dest~=.
	
	sum wecon
	tab year if wecon~=.
	codebook ccode if wecon~=.		
	
	sum wosoc
	tab year if wosoc~=.
	codebook ccode if wosoc~=.
	

	*** DEPENDENT VARIABLE **
	
	use "HT EBA merged DV and IVs 2006.dta", clear

	sum dest_UNODC
	tab year if dest_UNODC~=.
	codebook ccode if dest_UNODC~=.
	
	use "HT EBA merged DV and IVs.dta", clear

	sum destination
	tab year if destination~=.
	codebook ccode if destination~=.
	
	sum ldest
	tab year if ldest~=.
	codebook ccode if ldest~=.
		
	sum pdest
	tab year if pdest~=.
	codebook ccode if pdest~=.
		
	sum 
	tab year if ~=.
	codebook ccode if ~=.
		
	
	
	
	
	
	
	
	
	
	
	
	
	
	
	
	
	
	
	
	
	
	
	
	
		
	
	
	
	
	
	
	
	
